package main //必须

import "fmt"

func main() {

	c, d := 4, 5
	max, min := maxAndMin(c, d)
	fmt.Printf(" max = %d , min = %d \n ", max, min)
	fmt.Println(" === only max ==== ")
	max, _ = maxAndMin(7, 9)
	fmt.Printf(" max = %d  \n ", max)

}

func maxAndMin(a, b int) (max, min int) {
	if a > b {
		max = a
		min = b
	} else {
		max = b
		min = a
	}

	return
}
